package com.chinairi.mall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import com.chinairi.common.utils.ApplicationContextUtil;

@SpringBootApplication
@MapperScan(basePackages = {"com.chinairi.mall.dao","com.chinairi.common.mapper"})
@ComponentScan(basePackages = {"com.chinairi.common","com.chinairi.mall"})
@EnableTransactionManagement
public class ScmpIndustrialMallApplication {

	public static void main(String[] args) {
		ApplicationContext app = SpringApplication.run(ScmpIndustrialMallApplication.class, args);
		ApplicationContextUtil.setApplicationContext(app);
	}

}
